import request from '@/utils/request'

// 查询BI任务器列表
export function listBiTaskList(query) {
  return request({
    url: '/conf/BiTaskList/list',
    method: 'get',
    params: query
  })
}

// 查询BI任务器详细
export function getBiTaskList(id) {
  return request({
    url: '/conf/BiTaskList/' + id,
    method: 'get'
  })
}
// 查询BI任务器详细
export function taskById(id) {
  return request({
    url: '/monitor/job/task/' + id,
    method: 'get'
  })
}
// 查询BI任务器详细
export function execute(id) {
  return request({
    url: '/conf/BiTaskList/execute/' + id,
    method: 'post'
  })
}
// 新增BI任务器
export function addBiTaskList(data) {
  return request({
    url: '/conf/BiTaskList',
    method: 'post',
    data: data
  })
}

// 修改BI任务器
export function updateBiTaskList(data) {
  return request({
    url: '/conf/BiTaskList',
    method: 'put',
    data: data
  })
}

// 删除BI任务器
export function delBiTaskList(id) {
  return request({
    url: '/conf/BiTaskList/' + id,
    method: 'delete'
  })
}
